Resursbank\EcomTest\Unit\Lib\Model\Payment\Order\ActionLog\OrderLineTest S

Total Complexity 43
Dependencies 12
Dependents 0
Total lines 624
Lines of code 250
Logical lines of code 92
Comment lines 275
Methods 35
Properties 2

Methods 35

Method Rating Maintainability Complexity Lines of code
getPriceData()
S
60 4 13
testAcceptablePriceValues()
S
48 2 41
convert()
S
58 3 16
testAllowedPriceData()
S
61 2 12
testDisallowedPriceData()
S
65 2 9
testReferenceWasAssigned()
S
70 1 7
testTotalVatAmountThrowsWhenNegative()
S
74 1 4
testTotalVatAmountThrowsWhenItHasTooManyDecimals()
S
75 1 4
testTotalVatAmountThrowsWhenTooBig()
S
75 1 4
testDescriptionWasAssigned()
S
70 1 7
testQuantityWasAssigned()
S
70 1 7
testTypeWasAssigned()
S
68 1 8
testQuantityUnitWasAssigned()
S
70 1 7
testTotalAmountIncludingVatThrowsWhenItHasTooManyDecimals()
S
75 1 4
testVatRateWasAssigned()
S
70 1 7
testUnitAmountIncludingVatWasAssigned()
S
70 1 7
testTotalAmountIncludingVatWasAssigned()
S
70 1 7
testTotalVatAmountWasAssigned()
S
70 1 7
testTotalAmountIncludingVatThrowsWhenTooBig()
S
75 1 4
setUp()
S
77 1 4
testTotalAmountIncludingVatThrowsWhenNegative()
S
74 1 4
testUnitAmountIncludingVatThrowsWhenTooBig()
S
75 1 4
testUnitAmountIncludingVatThrowsWhenNegative()
S
74 1 4
testQuantityThrowsWhenTooBig()
S
75 1 4
testQuantityThrowsWhenItHasTooManyDecimals()
S
75 1 4
testQuantityThrowsWhenNegative()
S
74 1 4
testVatRateThrowsWhenTooBig()
S
75 1 4
testVatRateThrowsWhenItHasTooManyDecimals()
S
75 1 4
testVatRateThrowsWhenNegative()
S
74 1 4
testValidateQuantityUnitThrowsWhenTooLong()
S
69 1 7
testValidateReferenceThrowsWhenTooLong()
S
69 1 7
testValidateDescriptionThrowsWhenTooLong()
S
69 1 7
getRandomPrice()
S
70 1 5
isItemInitialized()
S
73 1 5
testUnitAmountIncludingVatThrowsWhenItHasTooManyDecimals()
S
75 1 4